# -*- coding: utf-8 -*-
"""
Created on Tue Oct 14 23:06:03 2014

@author: girish
"""

x = int(input())
w = x%10 
if w  == 0:
    print(2)
else:
    print(1)
    print(w)
404b5671085e995d433fb7f45f976175b4f8009a
<mask token>

<mask token>
if w == 0:
    print(2)
else:
    print(1)
    print(w)

<mask token>
x = int(input())
w = x % 10
if w == 0:
    print(2)
else:
    print(1)
    print(w)

# -*- coding: utf-8 -*-
"""
Created on Tue Oct 14 23:06:03 2014

@author: girish
"""

x = int(input())
w = x%10 
if w  == 0:
    print(2)
else:
    print(1)
    print(w)