#include
int main(){
int cm=0;
int foot,inch;//对于此处若将int改为float类型却不能通过,但我不理解其中的含义,我也不知道怎样理解。
scanf("%d",&cm);
foot=cm/0.3048/100;
inch=(cm*1.0000/0.3048/100-foot)*12;
printf("%d %d",(int)foot,(int)inch);
return 0;
}



