a, b, c = map(int, input().split('')) print('1 {}'.format(c))