consumption=float(input()) a=float(input()) tip=a*0.1 tax=a*0.07 total=consumption+tip+tax print(consumption,tip,tax,total)