a = int(input()) b = int(input()) if a and b: print("1") elif not (a or b): print("2") elif a or b: print("3") else: print("4")
如果先后输入1和1,则将输出1
如果先后输入0和1或者1和0,则将输出3
如果先后输入0和0,则将输出2
存在一组a和b的输入,输出是4