T = int(input())
if T > 100:
    print('Steam')
elif T < 0:
    print('Ice')
else:
    print('Water')

T = int(input())
if T > 100:
    print('Steam')
elif T < 0:
    print('Ice')
else:
    print('Water')
