#include <stdio.h> int main( void ) { for( unsigned n; scanf("%u",&n)==1; ) printf( "%u\n", n/100%10*1 + n/10%10*10 + n/1%10*100 ); }