# -*- coding: utf-8 -*-
"""
Created on Sun Jul 13 16:55:12 2014

@author: akshay
"""

a = 0
while(a == 0):
    b = int(raw_input())
    if b < 100:
        if b == 42:
            break
        else:
            print b