oxygen_atoms = int(input('Enter the number of atoms of Oxygen you have:'))
carbon_atoms = int(input('Enter the number of atoms of Carbon you have: '))
hydrogen_atoms = int(input('Enter the number of atoms of Hydroygen you have: '))
Weight = hydrogen_atoms*1.00794+oxygen_atoms*15.9994+carbon_atoms*12.0107
print(Weight)