#include<bits/stdc++.h> using namespace std; int main(){ int n,s,a,b,c,d,x,y; cin>>n; a=n%10; b=n/10%10; c=n/100%10; d=n/1000; y=b*10+a*1; x=d*10+c*1; cout<<x+y<<endl; printf("%.1f",x/1.0/y); } /************************************************************** Problem: 1609 User: lvrenxiang Language: C++ Result: Accepted Time:9 ms Memory:2072 kb ****************************************************************/